package com.zn.mapper;

import com.zn.entity.AppCustomer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AppCustomerMapper {
    int insert(AppCustomer record);
    int insertSelective(AppCustomer record);
    /**
     * 修改冻结保证金
     * @param record
     * @return
     */
//    int updateCustomerFreezeCapital(AppCustomer record);

    /**
     * 修改用户当前资金
     * @param record
     * @return
     */
//    int updateCustomerCapital(AppCustomer record);

    /**
     * 刷新用户资金
     * @param appCustomer
     * @return
     */
    int refreshCapital(AppCustomer appCustomer);
    AppCustomer selectByPrimaryKey(String customerId);
    AppCustomer selectByCustomerTel(@Param("customerTel")String customerTel);

    /**
     * 此登录包含交易密码登录以及资金密码登录
     * @param appCustomer
     * @return
     */
    AppCustomer customerLogin(AppCustomer appCustomer);

    /**
     * 根据交易账户查询客户对象
     * @param customerTradeAccount
     * @return
     */
    AppCustomer selectByCustomerTradeAccount(@Param("customerTradeAccount")String customerTradeAccount);
    int updateByPrimaryKeySelective(AppCustomer record);
}